extends TextureRect
class_name CommandNode

var command : BaseLevel.Commands

func set_command_texture(command : BaseLevel.Commands) -> void:
	self.command = command
	match command:
		BaseLevel.Commands.MOVE:
			texture = load("res://sprites/hud/move.png")
		BaseLevel.Commands.ROTATE_LEFT:
			texture = load("res://sprites/hud/rotate_left.png")
		BaseLevel.Commands.ROTATE_RIGHT:
			texture = load("res://sprites/hud/rotate_right.png")
